#include <iostream>
using namespace std;
int main() {
	char a=-128;
	for (size_t i=0; i< 8*(sizeof a); i++)
			cout << (char)(a<<i) <<endl;

	for (size_t i=0; i< 8*(sizeof a); i++)
			cout << (char)(a>>i) <<endl;

	a = 2;
	for (size_t i=0; i< 8*(sizeof a); i++)
			cout << (char)(a<<i) <<endl;

	for (size_t i=0; i< 8*(sizeof a); i++)
			cout << (char)(a >> i) <<endl;

}
